﻿package com.ease.platform.cronjob.service
{
	import com.obas.flex.common.proxy.DefaultServiceProxy;

	public class CronJobExecutionService extends DefaultServiceProxy
	{
    	private static const SERVICE_NAME:String = "cronJobExecutionService";

  		public function CronJobExecutionService() {
     		super(SERVICE_NAME);
  		}

		/**
    */
		public function 
			/* flex: void */ 
			/* java: void */
		shutdown(
 			cronJobExecutorName:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("shutdown", [cronJobExecutorName], callback, context);
 		}

		/**
    */
		public function 
			/* flex: void */ 
			/* java: void */
		start(
 			cronJobExecutorName:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("start", [cronJobExecutorName], callback, context);
 		}

		/**
    */
		public function 
			/* flex: void */ 
			/* java: void */
		pause(
 			cronJobExecutorName:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("pause", [cronJobExecutorName], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.platform.cronjob.support.CronJobExecutor */ 
			/* java: com.ease.platform.cronjob.support.CronJobExecutor */
		getCronJobExecutor(
 			cronJobExecutorName:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("getCronJobExecutor", [cronJobExecutorName], callback, context);
 		}

		/**
    */
		public function 
			/* flex: void */ 
			/* java: void */
		startAll(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("startAll", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: void */ 
			/* java: void */
		pauseAll(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("pauseAll", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: void */ 
			/* java: void */
		shutdownAll(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("shutdownAll", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.platform.cronjob.support.CronJobStatus */ 
			/* java: com.ease.platform.cronjob.support.CronJobStatus */
		getCronJobExecutorStatus(
 			cronJobExecutorName:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("getCronJobExecutorStatus", [cronJobExecutorName], callback, context);
 		}

		/**
    * @return  
    */
		public function 
			/* flex: String */ 
			/* java: java.lang.String */
		getAllCronJobExecutorStatus(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("getAllCronJobExecutorStatus", [], callback, context);
 		}
	}
}